//
// Created by zhp on 2025/7/17.
//
#include "Animal.h"
#include "Cat.h"
#include <iostream>

int main() {

    Animal *a = new Cat();

    // cat sound
    a->sound();
    std::cout << std::endl;

    // animal eat
    // 如果不是虚函数，不会走父类
    a->eat();

    delete a;
}
